import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
import { mainCamera } from "@/objects/main.camera";
import { renderer } from "@/objects/renderer";


class MyControls {
  controls: OrbitControls;
  constructor() {
    this.controls = new OrbitControls(mainCamera.mesh, renderer.domElement);
  }
  init() {
    this.controls.enabled = true;
    this.controls.update();
  }
}

const controls = new MyControls();

export {
  controls
};
